|
|
|
|
<Xaml>.Event (Function) In french: <Xaml>.Evénement Associates a procedure written in WLanguage with an event of Xaml control. Once <Xaml>.Event has been run, the procedure will be run whenever the selected event is triggered. // - Initialization of the Xaml control DOTNET_Xaml_OK MyString is string = [ <Button Name="Button1" Width="20">OK</Button> ] DOTNET_Xaml_OK = MyString DOTNET_Xaml_OK.Event("Button1", "Click", MyOnClickProcedure)
// -- Procedure MyOnClickProcedure PROCEDURE MyOnClickProcedure Info("The OK button was clicked")
Syntax
<Xaml control>.Event([<Name of .Net control>, ] <Event name> , <Procedure>)
<Xaml control>: Control name Name of Xaml control. <Name of .Net control>: Optional character string Name of the .Net control that will be associated with <Procedure>. If this parameter is not specified, <Procedure> will be associated with the Xaml control only.This name is case sensitive. <Event name>: Character string Name of the event associated with the Xaml control and/or with the .Net control that triggers the procedure. <Procedure>: Character string Name of WLanguage procedure called when the event is triggered. This procedure must contain the number of parameters supplied by the event and it may possibly return a result (see the documentation for the .Net control). Remarks - It is recommended to call <Xaml>.Event in the Xaml control initialization code.
- Important: PC SOFT provides no technical support about the operating mode of .Net controls.
You will find the different events supported by the .Net controls in their own documentation.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|